package com.imboss.sell.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName OrderDetail
 * @Description 订单详情
 * @Author 钟鲁超
 * @Date 2019/3/4 0004 下午 14:57
 **/
@Entity
@Data
@DynamicUpdate
public class OrderDetail {
    /*订单详情ID*/
    @Id
    private String detailId;
    /*订单id*/
    private String orderId;
    /*商品id*/
    private String productId;
    /*商品名称*/
    private String productName;
    /*商品单价，一定要自己从数据库里取，不能重前端传*/
    private BigDecimal productPrice;
    /*商品数量*/
    private Integer productQuantity;
    /*商品小图*/
    private String productIcon;
    /*创建时间*/
    private Date createTime;
    /*修改时间*/
    private Date updateTime ;

}
